import Vue from 'vue'
import App from './App.vue'

import '@/mobile/flexible'// 适配
import '@/styles/reset.css'// 初始化样式

import router from '@/router'
Vue.config.productionTip = false


import {
  Tabbar,
  TabbarItem,
  NavBar,
  Icon,
  Col,
  Row,
  Image as VanImage,
  Swipe,
  SwipeItem,
  Cell,
  Tag,
  Lazyload,
  Tab,
  Tabs,
  Search,
  List
} from 'vant';

Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);
Vue.use(Icon);
Vue.use(Col);
Vue.use(Row);
Vue.use(VanImage);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Cell);
Vue.use(Tag);
Vue.use(Lazyload);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Search);
Vue.use(List);
// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  lazyComponent: true,
});
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
